package cn.wolfcode.luowowo.small.domin;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
@Setter
public class UserCoin  implements Serializable {
    private Long userId;

    private long goldsIds;

    private Long coin;

    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("userId",userId);
        map.put("goldsIds",goldsIds);
        map.put("coin",coin);
        return JSON.toJSONString(map);
    }
}